GtkActionHelper: Change a message to a warning
authorMatthew Leeds <mleeds@redhat.com>
Wed, 15 Jun 2016 20:41:58 +0000 (16:41 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 20 Jun 2016 00:06:13 +0000 (20:06 -0400)
It's almost certainly a programmer error if an action isn't
activatable because its target and parameter type don't match.
This commit changes the existing g_message to a g_warning.

https://bugzilla.gnome.org/show_bug.cgi?id=767705

gtk/gtkactionhelper.c

index 24f006cc67320fb5d2d35b837534326e48dd9d29..6a77b03b02db71d75ef4efc395f38929b2c4ef29 100644 (file)
@@ -147,12 +147,12 @@ gtk_action_helper_action_added (GtkActionHelper    *helper,
 
   if (!helper->can_activate)
     {
-      GTK_NOTE(ACTIONS, g_message ("%s: action %s can't be activated due to parameter type mismatch "
-                                   "(parameter type %s, target type %s)",
-                                   "actionhelper",
-                                   helper->action_name,
-                                   parameter_type ? g_variant_type_peek_string (parameter_type) : "NULL",
-                                   helper->target ? g_variant_get_type_string (helper->target) : "NULL"));
+      g_warning ("%s: action %s can't be activated due to parameter type mismatch "
+                 "(parameter type %s, target type %s)",
+                 "actionhelper",
+                 helper->action_name,
+                 parameter_type ? g_variant_type_peek_string (parameter_type) : "NULL",
+                 helper->target ? g_variant_get_type_string (helper->target) : "NULL");
       return;
     }